package com.woniuxy.util;


import com.woniuxy.enums.ResponseStatues;
import com.woniuxy.dto.ResponseResult;

/**
 * @Author: ideaAdmin
 * TODO:
 * Date: 2022/2/8:18:21
 * Description:
 */

public class SetResponseResult {

    public static ResponseResult setResponseResult(Integer code, ResponseStatues responseStatus, String responseMessage, Object data){
        ResponseResult<Object> responseResult = new ResponseResult<>();

        responseResult.setCode(code);
        responseResult.setResponseStatus(responseStatus);
        responseResult.setResponseMessage(responseMessage);
        responseResult.setData(data);
        return responseResult;
    }
}
